package routers

import (
	"gin-gorm-learn/controllers"
	"github.com/gin-gonic/gin"
)

func AdminRouterInit(r *gin.Engine) {
	adminRouters := r.Group("/")
	{
		adminRouters.GET("/migrate", controllers.TaskController{}.AutoMigrate)
		adminRouters.GET("/reconnect", controllers.TaskController{}.ReConnect)
	}
}
